<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>菜单列表</title>
    <link rel="stylesheet" href="${ctxPath}/static/plugins/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctxPath}/static/css/main.css" media="all" />
    <link rel="stylesheet" href="${ctxPath}/static/css/font-awesome.min.css" media="all"/>
</head>
<body>
<div class="nav-bread">
    <span class="layui-breadcrumb">
      <a href="${ctxPath}">首页</a>
      <a href="${ctxPath}">菜单管理</a>
      <a><cite>编辑</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="fa fa-refresh fa-spin" style="line-height:30px"></i></a>
</div>
<div class="childrenBody">
    <form class="layui-form" action="" style="width:80%;">
            <input type="hidden" name="id" value="${menu.id!}" class="layui-input">
        <div class="layui-form-item">
            <label class="layui-form-label">菜单名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" value="${menu.title!}" class="layui-input"  placeholder="请输入菜单名称">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单标识</label>
            <div class="layui-input-block">
                <input type="text" name="code" value="${menu.code!}" class="layui-input"  placeholder="请输入菜单标识">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">链接</label>
            <div class="layui-input-block">
                <input type="text" name="href" value="${menu.href!}" class="layui-input"  placeholder="请输入链接">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图标</label>
            <div class="layui-input-block">
                <input type="text" name="icon" value="${menu.icon!}" class="layui-input"  placeholder="图标">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">父级</label>
            <div class="layui-input-block">
                <input type="text" name="parent" value="${menu.parent!}" class="layui-input"  placeholder="父级标识">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" name="sort" value="${menu.sort!}" class="layui-input"  placeholder="请输入排序序号">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-inline">
                    <select name="type">
                        <option value="1">菜单</option>
                        <option value="2">按钮</option>
                        <option value="3">其它</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <select name="permissionStatus" lay-filter="status">
                        <option value="1" ${!(menu.permissionStatus=='1'?'selected')}>启用</option>
                        <option value="0" ${!(menu.permissionStatus=='0'?'selected')}>禁用</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="menuEditForm">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

</div>

<script type="text/javascript" src="${ctxPath}/static/plugins/layui/layui.js"></script>
<script type="text/javascript" src="${ctxPath}/static/js/menu.js"></script>
</body>
</html>